import {
    SHOPDIC
} from '@/const/shopDic'

export const storeFeatureOption = {
    border: true,
    index: true,
    indexLabel: '序号',
    columnBtn: false,
    refreshBtn: false,
    addBtn: false,
    delBtn: false,
    editBtn: false,
    menuWidth: 300,
    menuAlign: 'center',
    align: 'center',
    stripe: true,
    expand: true,
    dicData: SHOPDIC,
    column: [
        {
            label: "编号",
            prop: "id",
            width: "150",
            fixed: true,
            hide: true,
            visdiplay: false,
            formWidth: 50,
            formHeight: 10,
            addDisplay: false,
            rules: [{
                required: true,
                message: "请输入编号",
                trigger: "blur"
            }]
        },
        /**特征名称*/
        {
            label: "特征名称",
            prop: "featureName",
            width: "350",
            fixed: true,
            formWidth: 10,
            rules: [{
                required: true,
                message: "特征名称",
                trigger: "blur"
            }]
        },
        /**店铺ID*/
        {
            label: "店铺ID",
            prop: "userId",
            width: "300",
            hide: true,

            fixed: true,
            formWidth: 10,

            rules: [{
                required: true,
                message: "店铺ID",
                trigger: "blur"
            }]
        },
        {
            label: "分类",
            prop: "classId",
            width: "200",
            fixed: true,
            hide: true,
            formWidth: 10,

            rules: [{
                required: true,
                message: "",
                trigger: "blur"
            }]
        },
        /**类型，0：规格，1：属性*/
        {
            label: "类型",
            prop: "type",
            width: "50",
            fixed: true,
            type: "radio",
            dicData: SHOPDIC.STORETYPE,
            rules: [{
                required: true,
                message: "类型，0：规格，1：属性",
                trigger: "blur"
            }]
        },
        /**级别*/
        {
            label: "级别",
            prop: "level",
            width: "50",
            hide: true,

            fixed: true,

            rules: [{
                required: true,
                message: "级别",
                trigger: "blur"
            }]
        },
        /**审核状态*/
        {
            label: "状态",
            prop: "approveStatus",
            width: "180",
            slot: true,
            type: "select",
            dicData: SHOPDIC.STORECHECKTYPE,
            rules: [{
                required: true,
                message: "审核状态",
                trigger: "blur"
            }]
        },
        /**上级ID拼接*/
        {
            label: "上级ID拼接",
            prop: "pId",
            width: "150",
            hide: true,
            fixed: true,
            addDisplay: false,
            rules: [{
                required: true,
                message: "上级ID拼接",
                trigger: "blur"
            }]
        },

        /**上级ID*/
        {
            label: "上级",
            prop: "parentId",
            width: "80",
            hide: true,

            fixed: true,
            rules: [{
                required: true,
                message: "上级ID",
                trigger: "blur"
            }]
        },
    ]

};
export const treeOption =  {
    nodeKey: 'id',
        addBtn: false,
        menuBtn:false,
        formOption: {
        labelWidth: 100,
            column: [{
            label: '当前选中',
            prop: 'test',
        }],
    },
    props: {
             labelText: '标题',
            label: 'label',
            value: 'value',
            children: 'children',
            leave:"level"
    }
};
export  const    treeTableOption={
    tree:true,
        menuWidth: 300,
        expandAll: false,
        expandLevel: 2,
        border: true,
        index: true,
    addBtn: false,
    delBtn: false,
    editBtn: false,
    column: [
        {
            label: '特征名称',
            prop: 'featureName',
            align: 'left',
            width: 200
        },
        {
            label: '类型',
            prop: 'type',
            width: 200

        },
        {
            label: '状态',
            prop: 'approveStatus',
            width: 200
}
    ],
};
    export  const    tapOption=   {
        column: [{
            icon: 'el-icon-info',
            label: '显示列表',
            prop: 'tab1',
        }, {
            icon: 'el-icon-warning',
            label: '申请列表',
            prop: 'tab2',
        },]
    };
export  const    form= {
            name: '',
            region: '',
            date1: '',
            date2: '',
            delivery: false,
            type: [],
            resource: '',
            desc: '',
        };
export  const    featureForm= {
    featureName: '',
    userId: '',
    classId: '',
    type: '',
    approveStatus: '',
    pId: '',
    parentId: '',
    level: "",
};
